// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   Log.java

package com.vandagroup.common.util;

import com.vandagroup.common.bo.ESSBean;
import java.io.PrintWriter;
import java.io.StringWriter;

public class Log extends ESSBean
{

    String owner;
    String level;
    String message;
    Throwable exp;

    public Log()
    {
        owner = null;
        level = null;
        message = null;
        exp = null;
    }

    public String getOwner()
    {
        return owner;
    }

    public String getLevel()
    {
        return level;
    }

    public String getMessage()
    {
        return message;
    }

    public Throwable getExp()
    {
        return exp;
    }

    public void setOwner(String owner)
    {
        this.owner = owner;
    }

    public void setLevel(String level)
    {
        this.level = level;
    }

    public void setMessage(String message)
    {
        this.message = message;
    }

    public void setExp(Throwable exp)
    {
        this.exp = exp;
    }

    public String getLog()
    {
        StringWriter exmsg = new StringWriter();
        PrintWriter pw = new PrintWriter(exmsg);
        if(exp != null)
            exp.printStackTrace(pw);
        return "[" + owner + ", LEVEL:" + level + ", MSG  :" + message + "]\n" + "EXP  :{" + exmsg.toString() + "}\n";
    }
}
